import request from '@/utils/request'

export function getAllTreeData() {
  return request({
    url: '/station/legendConfig/tree',
    method: 'get',
  })
}

export function getLegend(data) {
  return request({
    url: '/screen/mapScreen/getLegendList',
    method: 'get',
    params: data
  })
}
// // 管理区treeData
export function getManageAreaTreeData(data) {
  return request({
    // url: '/unit/unitManage/page',
    url:'/unit/unitManage/screenTree',
    method: 'get',
    params: data
  })
}

// export function getStationTypeTreeData(data) {
//   return request({
//     url: '/station/stationType/list',
//     method: 'get',
//     params: data
//   })
// }
// // 物联网设备treeData
// export function getEquipmentTreeData(data) {
//   return request({
//     url: '/equipment/equipmentType/list',
//     method: 'get',
//     params: data
//   })
// }
export function getAllMarkerData(data) {
  return request({
    url: '/screen/mapScreen/getLegendList',
    method: 'get',
    params: data
  })
}

export function getSalSchedule(data) {
  return request({
    url: '/screen/mapScreen/screenSalSchedule',
    method: 'get',
    params: data
  })
}

export function getSalRun(data) {
  return request({
    url: '/screen/mapScreen/screenSalRun',
    method: 'get',
    params: data
  })
}
export function getR21Data(data) {
  return request({
    url: '/screen/mapScreen/screenGasPrice',
    method: 'get',
    params: data
  })
}
export function getR22Data(data) {
  return request({
    url: '/screen/mapScreen/screenGasExecute',
    method: 'get',
    params: data
  })
}
export function getR13Data(data) {
  return request({
    url: '/screen/mapScreen/screenGasFinish',
    method: 'get',
    params: data
  })
}
export function getR23Data(data) {
  return request({
    url: '/screen/mapScreen/screenEquipmentAnomaly',
    method: 'get',
    params: data
  })
}
export function getL13Data(data) {
  return request({
    url: '/screen/mapScreen/screenSaleDaily',
    method: 'get',
    params: data
  })
}
export function getL21Data(data) {
  return request({
    url: '/screen/mapScreen/screenSalStructure',
    method: 'get',
    params: data
  })
}
export function getL22Data(data) {
  return request({
    url: '/screen/mapScreen/screenSalRate',
    method: 'get',
    params: data
  })
}
export function getL23Data(data) {
  return request({
    url: '/screen/mapScreen/screenClientWarn',
    method: 'get',
    params: data
  })
}
export function getTaskTableData(data) {
  return request({
    url: '/screen/mapScreen/screenReformTask',
    method: 'get',
    params: data
  })
}
export function getLimitTableData(data) {
  return request({
    url: '/screen/mapScreen/screenLimitForecast',
    method: 'get',
    params: data
  })
}
export function getStatisticData(data) {
  return request({
    url: '/screen/mapScreen/gisStatistic',
    method: 'get',
    params: data
  })
}











